import request from '@/utils/request'

// 查询博客点赞列表
export function listBloglike(query) {
  return request({
    url: '/lundao/bloglike/list',
    method: 'get',
    params: query
  })
}

// 查询博客点赞详细
export function getBloglike(bloglikeId) {
  return request({
    url: '/lundao/bloglike/' + bloglikeId,
    method: 'get'
  })
}
export function deleteBlogLikeByBlogIdAndUserId(blogId) {
  return request({
    url: '/lundao/bloglike/deleteBlogLikeByBlogIdAndUserId/' + blogId,
    method: 'delete'
  })
}
// 新增博客点赞
export function addBloglike(data) {
  return request({
    url: '/lundao/bloglike',
    method: 'post',
    data: data
  })
}

// 修改博客点赞
export function updateBloglike(data) {
  return request({
    url: '/lundao/bloglike',
    method: 'put',
    data: data
  })
}

// 删除博客点赞
export function delBloglike(bloglikeId) {
  return request({
    url: '/lundao/bloglike/' + bloglikeId,
    method: 'delete'
  })
}
